package com.g4.shoppingback.mapper;

import com.g4.shoppingback.pojo.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* <p>
    *  Mapper 接口
    * </p>
*
* @author admin
* @since 2022-02-19
*/
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 查询所有权限
     * @return 返回所有权限
     */
    @Select("select * from permission")
    List<Permission> findAll();
}
